package com.bw.lib_core.network;

import com.blankj.utilcode.util.EncryptUtils;

import java.util.Arrays;

public class SignUtils {

    /**
     * 1.全部参数拼接为一个字符串
     * 2.拼接后的字符串升序
     * 3.再次拼接 "tamboo"
     * 4.md5
     * 5.转小写
     */
    public static String createSign(String values) {
        char[] chars = values.toCharArray();
        Arrays.sort(chars);
        String str = new String(chars);
        str += "tamboo";
        return EncryptUtils.encryptMD5ToString(str).toLowerCase();
    }

}
